﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using dender.dvdcover.core;

namespace dender.dvdcover.gui.custom
{
    public class CoverTabControl : TabControl
    {
        private Cover cover;
        public Cover Cover
        {
            get
            {
                return cover;
            }
            set
            {
                if (value != null)
                {
                    cover = value;
                    foreach (KeyValuePair<string, CoverPart> part in Cover.Parts)
                    {
                        this.TabPages.Add(new CoverTabPage(part.Key, part.Value));
                    }

                }
            }

        }
    }
}
